package com.ruoyi.system.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 收款单表 base_receipt
 *
 * @author ruoyi
 * @date 2018-12-24
 */
public class Receipt extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer receiptId;
    /**
     * 合同id
     */
    private Integer contractId;
    private String contractName;
    /**
     * 工程id
     */
    private Integer projectId;
    private String projectName;
    /**
     * 收款账户
     */
    private String collection;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 备注
     */
    private String remark;

    public void setReceiptId(Integer receiptId) {
        this.receiptId = receiptId;
    }

    public Integer getReceiptId() {
        return receiptId;
    }

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    public Integer getContractId() {
        return contractId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setCollection(String collection) {
        this.collection = collection;
    }

    public String getCollection() {
        return collection;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

    public String getContractName() {
        return contractName;
    }

    public Receipt setContractName(String contractName) {
        this.contractName = contractName;
        return this;
    }

    public String getProjectName() {
        return projectName;
    }

    public Receipt setProjectName(String projectName) {
        this.projectName = projectName;
        return this;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("receiptId", getReceiptId())
                .append("contractId", getContractId())
                .append("projectId", getProjectId())
                .append("collection", getCollection())
                .append("price", getPrice())
                .append("remark", getRemark())
                .toString();
    }
}
